﻿using System;
using System.Collections.Generic;
using Evolus.Mercury.Model;
using Hippo.Core;

namespace Evolus.Mercury.Specifications
{
    public class ChangedSinceSpecification : Specification<StockInfo>
    {        
        public ChangedSinceSpecification(ICollection<string> symbols, DateTime lastUpdatedTime) :
            base(p => p.LastUpdatedTime >= lastUpdatedTime && symbols.Contains(p.Stock.Symbol))
        {
        }
    }
}
